<?php
declare (strict_types=1);

namespace app\admin\logic\promotion;

use app\admin\model\promotion\PromotionBargain as PromotionBargainModel;
use app\common\helper\util\Page;

/**
 * Class PromotionBargain
 *
 * @package app\admin\logic\promotion
 */
class PromotionBargain extends PromotionBargainModel
{

    /**
     * 砍价列表
     * Author: Martinsun <syh@sunyonghong.com>
     * Date: 2021/4/24
     *
     * @param array $map
     * @return \think\Paginator
     * @throws \think\db\exception\DbException
     */
    public function getList(array $map)
    {
        return $this->with(['user'])->where($map)->paginate(Page::listRows());
    }
}